package com.longxiao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.longxiao.entity.Course;

public interface CourseMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Course record);

    int insertSelective(Course record);

    Course selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Course record);

    int updateByPrimaryKey(Course record);
    
    List<Course> selectAllCourse();
    
    List<Course> getCourseList(@Param("cond")Course cond,@Param("offset")int offset, @Param("rows")int rows);
    
    int countCourseList(@Param("cond")Course cond);
    
    Course getCourseByName(String name);
}